SftTree/OCX 7.0

SftTree.ListIndex Property

Softel vdm, Inc.

Defines the current item (caret location).

Deprecated - Provided for compatibility with earlier versions only - Use Items.Current instead

Syntax       

Get

VB.NET

ItemIndex = object.ListIndex  As Integer

VB

ItemIndex = object.ListIndex  As Long

C#.NET

int ItemIndex = object.ListIndex;

VC++

long ItemIndex = object->ListIndex;
long ItemIndex = object->GetListIndex();

C

HRESULT object->get_ListIndex(long* ItemIndex);

Delphi

ItemIndex := object.ListIndex   : Integer;

Put

VB.NET

object.ListIndex = ItemIndex  As Integer

VB

object.ListIndex = ItemIndex  As Long

C#.NET

int object.ListIndex = ItemIndex;

VC++

long object->ListIndex = ItemIndex;
void object->PutListIndex(long ItemIndex);

C

HRESULT object->put_ListIndex(long ItemIndex);

Delphi

object.ListIndex := ItemIndex   : Integer;

object

A SftTree object.

ItemIndex

Defines the current item (caret location).

Comments

Deprecated - Provided for compatibility with earlier versions only - Use Items.Current instead

The ListIndex property defines the current item (caret location).

The ListIndex property describes the current item, which is the item that has the focus rectangle.  This item is not necessarily also selected.  The current item is described by the ListIndex property, the currently selected item is described by the Items.Selection property.  These are not necessarily the same even in a single-selection tree control (see Items.NoSelection property).

If the tree control is empty, the ListIndex property returns -1.  An application must set the property to a valid, existing item.  It cannot set it to -1.

The focus rectangle can be hidden using the Items.ShowFocusRectangle property. 

See Also  SftTree Object | Object Hierarchy


Feedback / comments / error reports for this topic
© 2015 - Softel vdm, Inc. - www.softelvdm.com